# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)

#add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/jsi build)
# 创建静态库 js_vm_executor_common
add_library(jsvm_executor_common STATIC
        "${CMAKE_CURRENT_SOURCE_DIR}/src/JSVMRuntime.cpp"
        "${CMAKE_CURRENT_SOURCE_DIR}/src/JSVMConverter.cpp"
        "${CMAKE_CURRENT_SOURCE_DIR}/src/hostProxy.cpp"
        "${CMAKE_CURRENT_SOURCE_DIR}/src/JSVMExecutorFactory.cpp"
        "${CMAKE_CURRENT_SOURCE_DIR}/src/JSVMRuntimeFactory.cpp"
        )

# 设置包含目录
target_include_directories(jsvm_executor_common PUBLIC
        "${CMAKE_SOURCE_DIR}/src/jsiexecutor"
        "${CMAKE_CURRENT_SOURCE_DIR}/include"
        )

# 设置目标链接库
target_link_libraries(jsvm_executor_common libjsvm.so jsi)